﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace _01_继承
{
    class Person_Class:PersonBase,ISay
    {
        public override void SpeakLanguage()
        {
            base.SpeakLanguage();//base：只基类，类似于关键字this
            Console.WriteLine("说中文....");
        }

        public void Say()
        {
            Console.WriteLine("说的动作...."); 
        }
    }
    class PersonBase
    {
       public virtual void SpeakLanguage()
       {
           Console.WriteLine("Speaking Language.....SS");
       
       }
    }

    abstract class Person_Abstract
    {
        public  abstract void SpeakLanguage();
    }
    class Person_A:Person_Abstract
    {
        public override void SpeakLanguage()
        {
            Console.WriteLine("Person_A SpeakLanguage...."); 
        } 
        
    }
}
